package org.cytoscape.myapp.cytoscape_app_v1.internal.metrics.graph;


public class MyEdge {

	public final static Integer UU=0;
	public final static Integer UA=1;
	private int type;
	private MyNode init;
	private MyNode end;

	public MyEdge(MyNode init, MyNode end, Integer type) {
		this.setInit(init);
		this.setEnd(end);
		this.type=type;
	}

	public Integer getType() {
		return type;
	}

	public void setType(Integer type) {
		this.type = type;
	}
	
	public boolean equals(MyEdge edge){
		if(this.getEnd().equals(edge.getEnd())&&(this.getInit().equals(edge.getInit())))
			return true;
		return false;
	}

	public MyNode getInit() {
		return init;
	}

	public void setInit(MyNode init) {
		this.init = init;
	}

	public MyNode getEnd() {
		return end;
	}

	public void setEnd(MyNode end) {
		this.end = end;
	}

}
